//
//  Airport.m
//  AirTrafficControl
//
//  Created by gu steve on 1/10/12.
//  Copyright (c) 2012 SteveGu. All rights reserved.
//

#import "Airport.h"

@interface Airport (Private)


@end


@implementation Airport

@synthesize name = _name;
@synthesize runways = _runways;

-(id) init
{
    if(self = [super init])
    {
        _runways = [[NSMutableArray alloc] init];
        
        for (int i = 0; i < 4; i++) {
            Runway *runway = [[Runway alloc] initWithID:23+i];
            [_runways addObject:runway];
            [runway release];
        }
    }
    
    return self;
}




-(void) dealloc
{
    [_runways release];
    
    [super dealloc];
}
@end
